<?php


namespace App\Console\Commands;

use App\Sys\Services\SysI18nService;
use Illuminate\Console\Command;

class AutoCommand extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'auto:trans';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '自动推送资源到数据库';

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $i18nService = app()->make(SysI18nService::class);
        $i18nService->autoMachineTrans();
    }
}
